package su.com.www;

public class Student {

    private String name;
    private String gender;
    private int age;
    private double score;
    private static String classRome = "bit109";

    public Student(String s, String s1, int i, double v) {
    }
    //实例代码块；
    {
        this.name = "bit";
        this.age  = 12;
        this.gender = "man";

        System.out.println("实例代码块");
    }
    //静态代码块；
    static {
        classRome = "bit306";
        System.out.println("静态代码块");
    }

//    public static void main1(String[] args) {
//       Student s1 = new Student();
//       Student s2 = new Student();
//    }
    public Student() {
        System.out.println("无参数方法");
    }

    public static void main(String[] args) {
        Student s1 = new Student();
        Student s2 = new Student();
        Student s3 = new Student();
        Student s4 = new Student();
        System.out.println(s4.getClass());
        System.out.println(s4.name);
        System.out.println(s3.name);


//        System.out.println(Student.classRome);
//        Student s1 = new Student("lisi","男",19,4.0);
//        Student s2 = new Student("zhangsan","男",19,3.8);
//        Student s3 = new Student("wangwu","男",18,2.5);
//
//        System.out.println(s1.classRome);
//        System.out.println(s2.classRome);
//        System.out.println(s3.classRome);
    }



}
